﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using Magicodes.ExporterAndImporter.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 产品是否锁定基础输入参数
/// </summary>
public class productislockBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    [Dict("product_lock_type", AllowNullValue=true)]
    public virtual string? type { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    public virtual string? encoding { get; set; }
    
    /// <summary>
    /// 工序
    /// </summary>
    public virtual long? process { get; set; }
    
    /// <summary>
    /// 锁定开始时间
    /// </summary>
    public virtual DateTime? lockstarttime { get; set; }
    
    /// <summary>
    /// 锁定截止时间
    /// </summary>
    public virtual DateTime? lockendtime { get; set; }
    
    /// <summary>
    /// 锁定原因
    /// </summary>
    public virtual string? lockcause { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    public virtual bool? states { get; set; }
    
}

/// <summary>
/// 产品是否锁定分页查询输入参数
/// </summary>
public class PageproductislockInput : BasePageInput
{
    /// <summary>
    /// 类型
    /// </summary>
    [Dict("product_lock_type", AllowNullValue=true)]
    public string? type { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    public string? encoding { get; set; }
    
    /// <summary>
    /// 工序
    /// </summary>
    public long? process { get; set; }
    
    /// <summary>
    /// 锁定开始时间范围
    /// </summary>
     public DateTime?[] lockstarttimeRange { get; set; }
    
    /// <summary>
    /// 锁定截止时间范围
    /// </summary>
     public DateTime?[] lockendtimeRange { get; set; }
    
    /// <summary>
    /// 锁定原因
    /// </summary>
    public string? lockcause { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    public bool? states { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 产品是否锁定增加输入参数
/// </summary>
public class AddproductislockInput
{
    /// <summary>
    /// 类型
    /// </summary>
    [Dict("product_lock_type", AllowNullValue=true)]
    [MaxLength(64, ErrorMessage = "类型字符长度不能超过64")]
    public string? type { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    [MaxLength(64, ErrorMessage = "编码字符长度不能超过64")]
    public string? encoding { get; set; }
    
    /// <summary>
    /// 工序
    /// </summary>
    public long? process { get; set; }
    
    /// <summary>
    /// 锁定开始时间
    /// </summary>
    public DateTime? lockstarttime { get; set; }
    
    /// <summary>
    /// 锁定截止时间
    /// </summary>
    public DateTime? lockendtime { get; set; }
    
    /// <summary>
    /// 锁定原因
    /// </summary>
    [MaxLength(64, ErrorMessage = "锁定原因字符长度不能超过64")]
    public string? lockcause { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    public bool? states { get; set; }
    
}

/// <summary>
/// 产品是否锁定删除输入参数
/// </summary>
public class DeleteproductislockInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 产品是否锁定更新输入参数
/// </summary>
public class UpdateproductislockInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>    
    [Dict("product_lock_type", AllowNullValue=true)]
    [MaxLength(64, ErrorMessage = "类型字符长度不能超过64")]
    public string? type { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>    
    [MaxLength(64, ErrorMessage = "编码字符长度不能超过64")]
    public string? encoding { get; set; }
    
    /// <summary>
    /// 工序
    /// </summary>    
    public long? process { get; set; }
    
    /// <summary>
    /// 锁定开始时间
    /// </summary>    
    public DateTime? lockstarttime { get; set; }
    
    /// <summary>
    /// 锁定截止时间
    /// </summary>    
    public DateTime? lockendtime { get; set; }
    
    /// <summary>
    /// 锁定原因
    /// </summary>    
    [MaxLength(64, ErrorMessage = "锁定原因字符长度不能超过64")]
    public string? lockcause { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>    
    public bool? states { get; set; }
    
}

/// <summary>
/// 产品是否锁定主键查询输入参数
/// </summary>
public class QueryByIdproductislockInput : DeleteproductislockInput
{
}

/// <summary>
/// 下拉数据输入参数
/// </summary>
public class DropdownDataproductislockInput
{
    /// <summary>
    /// 是否用于分页查询
    /// </summary>
    public bool FromPage { get; set; }
}

/// <summary>
/// 产品是否锁定数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportproductislockInput : BaseImportInput
{
    /// <summary>
    /// 类型 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public string? type { get; set; }
    
    /// <summary>
    /// 类型 文本
    /// </summary>
    [Dict("product_lock_type")]
    [ImporterHeader(Name = "类型")]
    [ExporterHeader("类型", Format = "", Width = 25, IsBold = true)]
    public string typeDictLabel { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    [ImporterHeader(Name = "编码")]
    [ExporterHeader("编码", Format = "", Width = 25, IsBold = true)]
    public string? encoding { get; set; }
    
    /// <summary>
    /// 工序 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public long? process { get; set; }
    
    /// <summary>
    /// 工序 文本
    /// </summary>
    [ImporterHeader(Name = "工序")]
    [ExporterHeader("工序", Format = "", Width = 25, IsBold = true)]
    public string processFkDisplayName { get; set; }
    
    /// <summary>
    /// 锁定开始时间
    /// </summary>
    [ImporterHeader(Name = "锁定开始时间")]
    [ExporterHeader("锁定开始时间", Format = "", Width = 25, IsBold = true)]
    public DateTime? lockstarttime { get; set; }
    
    /// <summary>
    /// 锁定截止时间
    /// </summary>
    [ImporterHeader(Name = "锁定截止时间")]
    [ExporterHeader("锁定截止时间", Format = "", Width = 25, IsBold = true)]
    public DateTime? lockendtime { get; set; }
    
    /// <summary>
    /// 锁定原因
    /// </summary>
    [ImporterHeader(Name = "锁定原因")]
    [ExporterHeader("锁定原因", Format = "", Width = 25, IsBold = true)]
    public string? lockcause { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [ImporterHeader(Name = "状态")]
    [ExporterHeader("状态", Format = "", Width = 25, IsBold = true)]
    public bool? states { get; set; }
    
}
